import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import Index from './pages/index';
import Map from './pages/map';
import Room from './pages/room';
import Test from './pages/test';

const router = createBrowserRouter([
{
  "path": "/",
  "children": [
    {
      "path": "/index",
      "element": <Index /> 
    },
    {
      "path": "/map",
      "element": <Map /> 
    },
    {
      "path": "/room",
      "element": <Room /> 
    },
    {
      "path": "/test",
      "element": <Test /> 
    },
  ]
}
]);

const Routers = () => <RouterProvider router={router} />;

export default Routers;
